def sum(n:int)->int:
    if n == 1:
        return 1
    else:
        return n+sum(n-1)
print(sum(10))
#求1到n整数和












